﻿function AJAX_call() {
    try {
        var xmlHttp_fb;
        try {
            // Firefox, Opera 8.0+, Safari
            xmlHttp_fb = new XMLHttpRequest();
        }
        catch (e) {
            // Internet Explorer
            try {
                xmlHttp_fb = new ActiveXObject("Msxml2.XMLHTTP");
            }
            catch (e) {
                try {
                    xmlHttp_fb = new ActiveXObject("Microsoft.XMLHTTP");
                }
                catch (e) {
                    //alert("Your browser does not support AJAX!");
                    return false;
                }
            }
        }
        xmlHttp_fb.onreadystatechange = function () {
            if (xmlHttp_fb.readyState == 1) {
                //document.getElementById("ctl00_fb_status").innerHTML = "<img src='Images/load.gif' border='0'></img>&nbsp;Submitting...";
            }
            if (xmlHttp_fb.readyState == 4) {
                alert(xmlHttp_fb.responseText);
            }
        }
        var http_date = new Date()
        xmlHttp_fb.open("GET", "stats.aspx?mode=ajax&rnd=" + http_date.getTime(), true);
        xmlHttp_fb.send(null);
    }
    catch (Exxx) {
        alert(Exxx.message);
    }
}